package com.fz.song.feibao.framework.runner;

import com.fz.song.feibao.web.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author 77088
 * @title: FeiBaoApplicationRunner
 * @projectName feibao
 * @description: 启动后执行
 * @date 2021/10/3115:04
 */
@Component
public class FeiBaoApplicationRunner implements ApplicationRunner {

    @Autowired
    private IAdminService userService;

    @Override
    public void run(ApplicationArguments args) {
        userService.initAdmin();
    }
}
